<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link href="<%=path%>/pattern/cm/css/list_public.css" type="text/css"
			rel="stylesheet" />
		<link rel="stylesheet" type="text/css"
			href="<%=path%>/pattern/flexigrid/css/flexigrid/flexigrid.css">
		<script type="text/javascript"
			src="<%=path%>/pattern/jquery-ui-1.7.1.custom/js/jquery-1.3.2.min.js"></script>
			<script src="<%=path%>/pattern/cm/js/date1.js"
			language="javascript" type="text/javascript"></script>
		<script type="text/javascript"
			src="<%=path%>/pattern/flexigrid/flexigrid.js"></script>
		<script src="<%=path%>/pattern/cm/js/list_public.js"
			language="javascript" type="text/javascript"></script>
		<title>无标题文档</title>
	</head>
	<body>

		<div id="layout">
			<div class="title">
				异常警告日志列表
			</div>
			<div class="handle" id="search" >
				<table width="98%" border="0" cellspacing="0" cellpadding="0"
					align="center">
					<tr>
						<td width="86%">
							<div id="search1" style="display: ">
								<form action="<%=basePath%>attackLogList.action?type=find_all_desc_with_date" method="post">
									<div class="search_input">
										起始时间：
										<input style="width:100px" type="text" name="beginDate"  id="beginDate" onclick="MyCalendar.SetDate(this)"/>
									</div>
									<div class="search_input">
										结束时间：
										<input style="width:100px" type="text" name="endDate" id="endDate" onclick="MyCalendar.SetDate(this)"/>
									</div>
									<div class="search_input">
										<input type="submit"  value="查询" />
									</div>
								</form>
							</div>
						</td>
					</tr>
				</table>
			</div>
			<div class="list" id="list">
				<form name="data" method="post">
					<table class="flexme1">
						<thead>
							<tr>
								<th width="40">
									标记
								</th>
								<th width="80">
									类型
								</th>
								<th width="40">
									级别
								</th>
								<th width="80">
									源IP
								</th>
								<th width="50">
									源端口
								</th>
								<th width="80">
									目的IP
								</th>
								<th width="50">
									目的端口
								</th>
								<th width="130">
									时间
								</th>
								<th width="260">
									描述
								</th>
								
								<th width="68">
									操作
								</th>
								
							</tr>
						</thead>
						<tbody>
							<s:iterator value="list">
								<tr>
									<td align="center">
										<input type="checkbox" value="<s:property value="id"/>">
									</td>
									<td align="center">
										<s:property value="type" />
									</td>
									<td align="center">
										<s:property value="level" />
									</td>
									<td align="center">
										<s:property value="sip" />
									</td>
									<td align="center">
										<s:property value="sport" />
									</td>
									<td align="center">
										<s:property value="dip" />
									</td>
									<td align="center">
										<s:property value="dport" />
									</td>
									<td align="center">
										<s:property value="tm" />
									</td>
									<td align="center">
										<s:property value="detail" />
									</td>


									<td align="center">
										&nbsp;
										<s:if test="#session.type == 'admin'">
										<a
											href="<%=path%>/attackLogInfo.action?type=delete&ids=<s:property value="id"/>">删除</a>
										</s:if>
											&nbsp;&nbsp;

									</td>

								</tr>
							</s:iterator>

						</tbody>
					</table>
				</form>
			</div>
			<div class="bottom">
				<div class="pageup"
					onclick="window.location.href='<%=basePath%>attackLogList.action?type=find_all_desc_with_date&currentPage=${previousPage}'"></div>
				<div id="pages">
					${currentPage} of ${totalPages}
				</div>
				<div class="pagedown"
					onclick="window.location.href='<%=basePath%>attackLogList.action?type=find_all_desc_with_date&currentPage=${nextPage}'"></div>
				<div id="records">
					共有 ${totalRows} 条记录
				</div>
				<div class="clear"></div>
			</div>
		</div>
	</body>
</html>
